package com.wh1200.xmlless.test.model

import com.wh1200.mybatis.xmlless.annotations.JsonMappingProperty
import com.baomidou.mybatisplus.annotation.TableLogic
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.persistence.Table
import org.springframework.data.annotation.CreatedBy
import org.springframework.data.annotation.CreatedDate
import java.util.*

@Table(name = "t_dog")
class Dog {

  @CreatedDate
  var createTime: Date? = null

  @TableLogic(delval = "true", value = "false")
  var deleteFlag: Boolean = false

  @CreatedBy
  var createUserId: Int? = null

  @Id
  @GeneratedValue(strategy = GenerationType.SEQUENCE)
  var id: Int? = null
  var name: String? = null

  @JsonMappingProperty
  var names: List<String>? = null

  @JsonMappingProperty
  var ages: List<Int>? = null

}
